<h1><?php
if ($custom_fields->is_loaded()) {
    echo "Modify";
} else {
    echo "Add";
}
?> Field</h1>
<?php echo  error_messages_for('custom_fields') ?>
<?php echo  form_tag('modify') ?>
<?php include load_template('_form.php') ?>
<?php echo  content_tag('p', submit_tag('Submit').' or '.link_to('Cancel','index')) ?>
<?php echo  end_form_tag() ?>